﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 收货表实体.
/// </summary>
[SugarTable("wms_busi_receive", "收货表")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiReceiveEntity : CLDEntityBase
{
    /// <summary>
    /// 供应商id.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierId", ColumnDescription = "供应商id")]
    public string SupplierId { get; set; }

    /// <summary>
    /// 供应商编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierCode", ColumnDescription = "供应商编码")]
    public string SupplierCode { get; set; }

    /// <summary>
    /// 供应商名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierName", ColumnDescription = "供应商名称")]
    public string SupplierName { get; set; }

    /// <summary>
    /// ASN.
    /// </summary>
    [SugarColumn(ColumnName = "F_ASN", ColumnDescription = "ASN")]
    public string Asn { get; set; }

    /// <summary>
    /// 发货日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeliveryDate", ColumnDescription = "发货日期")]
    public DateTime? DeliveryDate { get; set; }

    /// <summary>
    /// 采购订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PurchaseOrder", ColumnDescription = "采购订单号")]
    public string PurchaseOrder { get; set; }

    /// <summary>
    /// 收货人.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveUser", ColumnDescription = "收货人")]
    public string ReceiveUser { get; set; }

    /// <summary>
    /// 收货日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveDate", ColumnDescription = "收货日期")]
    public DateTime? ReceiveDate { get; set; }

    /// <summary>
    /// 收货方式.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveType", ColumnDescription = "收货方式")]
    public string ReceiveType { get; set; }

    /// <summary>
    /// 检验人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckUser", ColumnDescription = "检验人")]
    public string CheckUser { get; set; }

    /// <summary>
    /// 检验状态：0合未检验1合格2 不合格.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckStatus", ColumnDescription = "检验状态：0合未检验1合格2 不合格")]
    public int? CheckStatus { get; set; }

    /// <summary>
    /// 检验时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckDate", ColumnDescription = "检验时间")]
    public DateTime? CheckDate { get; set; }

    /// <summary>
    /// 状态(0:未处理新数据 1：数据正确待处理 2:收货待检验 3:已检验 4：入待入库区域 5已完成 9:收获数据错误驳回 ).
    /// </summary>
    [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态(0:未处理新数据 1：数据正确待处理 2:收货待检验 3:已检验 4：入待入库区域 5已完成 9:收获数据错误驳回 )")]
    public int? Status { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "Site")]
    public string Site { get; set; }
}